<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
  <meta charset="UTF-8">
  <title>更新图书</title>
  <link rel="stylesheet" href="/static/css/update.css">
</head>
<body>
<h2 style="margin: auto;text-align: center">更新图书</h2>
<div style="margin:auto;text-align: center">
  <form action="/bookupdate" method="post">
    编 号：<input name="id" type="text" th:value="${book.id}" readonly="readonly">
    <br>
    书 名：<input type="text" th:value="${book.title}" name="title" readonly="readonly">
    <br>
    作 者：<input type="text" th:value="${book.author}" name="author" readonly="readonly">
    <br>
    书 号：<input type="text" th:value="${book.isbn}" name="isbn" readonly="readonly">
    <br>
    出版商：<input type="text" th:value="${book.publisher}" name="publisher" readonly="readonly">
    <br>
    出版日期：<input type="date" th:value="${#dates.format(book.publish_date, 'yyyy-MM-dd')}" name="publish_date" readonly="readonly">
    <br>
    价 格：<input type="text" th:value="${book.price}" name="price" readonly="readonly">
    <br>
    库 存：<input type="text" th:value="${book.stock}" name="stock" readonly="readonly">
    <br>
  </form>
  <a href="/readerbooklist">返回</a>
</div>
</body>
</html>